package com.pap.rbac.roleresource.auto.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.rbac.roleresource.auto.entity.RoleResourceRel;;

public interface RoleResourceRelMapper extends PapBaseMapper<RoleResourceRel> {
    int deleteByPrimaryKey(String id);

    int selectCountByMap(Map<Object, Object> map);

    List<RoleResourceRel> selectListByMap(Map<Object, Object> map);

    RoleResourceRel selectByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

    int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

    int insert(RoleResourceRel record);

    int insertSelective(RoleResourceRel record);

    RoleResourceRel selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(RoleResourceRel record);

    int updateByPrimaryKey(RoleResourceRel record);
	
	// add alexgaoyh
	
	int deleteByRoleId(String roleId);
}